//导入request.js
import request from "@/utils/request";

//新增车辆信息
export const INSERT_INTO_CAR_INFO = params => request.post('/car/insertInToCarInfo', params)

//查询所有车辆信息
export const SELECT_ALL_CAR_INFO = params => request.post('/car/selectAllCarInfo', params, {headers: {'Content-Type': 'application/x-www-form-urlencoded'}})

export const SELECT_FILTER= params => request.post('/car/selectFilter', params, {headers: {'Content-Type': 'application/x-www-form-urlencoded'}})

//编辑车辆信息
export const EDIT_CAR_INTO = params => request.post('/car/editCarInfo', params,)

//下载车辆信息
export const DOWNLOAD_CAR_INFO = () => window.location.href = '/car/downloadCarInfo'

//根据ID删除车辆信息
export const DELETE_CAR_INFO_BY_ID = params => request.post('/car/deleteCarInfoById', params, {headers: {'Content-Type': 'application/x-www-form-urlencoded'}})